package com.secondhand.project.domain;

import com.secondhand.common.annotation.Excel;
import com.secondhand.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.List;

@Data
public class Comment extends BaseEntity {
    private static final long serialVersionUID = 1L;
    private Long id;
    @Excel(name = "内容")
    private String content;
    @Excel(name = "评论人")
    private Long userId;
    @Excel(name = "父级ID")
    private Long pid;
    @Excel(name = "评论时间")
    private String time;
    @Excel(name = "关联ID")
    private Long fid;
    @Excel(name = "模块")
    private String module;
    @Excel(name = "根节点ID")
    private Long rootId;

    private List<Comment> children;
    private String userName;
    private String avatar;
    private String parentUserName;
}





